{extend name="common/index1" /}
{block name="style"}
<link rel="stylesheet" href="__TEMPLATE__/mobile/index/css/index.css" type="text/css">
<link rel="stylesheet" href="__TEMPLATE__/mobile/index/css/member.css" type="text/css">
<script type="text/javascript" src="__TEMPLATE__/sysme/js/aa.js"></script>
<link rel="stylesheet" type="text/css" href="__SYSMET__/lib/Hui-iconfont/1.0.8/iconfont.css" />

<script src="__TEMPLATE__/sysme/tili/js/jquery.1.7.2.min.js"></script>
<script src="__SYSMET__/lib/layer/2.4/layer.js" type="text/javascript"></script>
<script src="__TEMPLATE__/sysme/tili/js/mobiscroll_002.js" type="text/javascript"></script>
<script src="__TEMPLATE__/sysme/tili/js/mobiscroll_004.js" type="text/javascript"></script>
<link href="__TEMPLATE__/sysme/tili/css/mobiscroll_002.css" rel="stylesheet" type="text/css">
<link href="__TEMPLATE__/sysme/tili/css/mobiscroll.css" rel="stylesheet" type="text/css">
<script src="__TEMPLATE__/sysme/tili/js/mobiscroll.js" type="text/javascript"></script>
<script src="__TEMPLATE__/sysme/tili/js/mobiscroll_003.js" type="text/javascript"></script>
<script src="__TEMPLATE__/sysme/tili/js/mobiscroll_005.js" type="text/javascript"></script>
<link href="__TEMPLATE__/sysme/tili/css/mobiscroll_003.css" rel="stylesheet" type="text/css">
{/block}
{block name="body"}

<style type="text/css">
	.information{width:100%;height:40px;background:#f3f3f3;margin-top:44px;line-height:40px;padding:0 2%;font-size:14px;color:#a2a2a2;}
	.information>div{height:100%;}
	.information span{display:inline-block;}
	.information .infor_le{float:left;width:50%;}
	.information .infor_ri{float:right;text-align: right;}
	.info_money{width:100%;padding:0 2%;}
	.info_money p{height:25px;line-height:25px;width:100%;margin-bottom:15px;}
	.info_money div span{width:22%;height:34px;color:#767675;text-align: center;line-height:34px;float:left;margin-right:3%;margin-bottom:15px;border:1px solid #ccc;border-radius:6px;}
	.info_money div span:nth-child(4n){margin-right:0;}
	.info_money div .add_bg{background:#f00;color:#fff;}
	.zfqd{width:100%;height:25px;padding:0 2%;overflow: hidden;background:#f3f3f3;}
	.zfqd p{font-size:14px;color:#666;line-height:25px;float:left;margin-left:3px;}
	.zfqd img{margin-top:5px;width:15px;float:left;}
	#zftd{width:96%;padding:0 2%;margin-bottom:20px;height:auto;}
	#zftd:nth-last-child{margin-bottom:120px;}
	#zftd li{width:100%;}

	#zftd li a{display:block;width:100%;height:44px;border-bottom:1px solid #ccc;padding:8px 0;}
	#zftd li a img{width:44px;display:block;float:left;margin-right:8px;}
	#zftd li a div{float:left;}
	#zftd li a  span{display:block;float:right;margin-top:15px;}
	#zftd li a p:nth-child(1){font-size:16px;margin-bottom:4px;}
	#zftd li a p:nth-child(2){font-size:12px;color:#A2A2A2;}
	.wxts p {
		color: #999;
		font-size: 12px;
		line-height: 20px;
		text-align: left;
	}
	#ChongZhi_WeiXin{display:none;}
	#ChongZhi_ZhiFuBao{display:none;}
	#ChongZhi_QQ{display:none;}
	#ChongZhi_WangYin{display:none;}
	#ChongZhi_Online{display:none;}


</style>
<div class="information">
	<div class="infor_le"><span>账号</span>：<span style="color:#000;">{$name}</span></div>
	<div style="float: right;"><img src="__TEMPLATE__/mobile/index/img/shuaixin.png"  style="width:20px;margin-top:10px;margin-left:5px;"/></div>
	<div class="infor_ri"><span>余额</span>：<span style="color:#f00;">{$money}</span></div>

</div>
<div class="info_money">
	<p style="color:#8e8880;">
		充值金额：<input value="10" onkeyup="this.value=this.value.replace(/\D/g,'')" onafterpaste="this.value=this.value.replace(/\D/g,'')" style="border-bottom:1px solid #ccc;display:inline-block;width:70%;" id="recharge_money"/>元
	</p>
	<div id="money_value">
		<span data-val="10" class="add_bg">￥10</span>
		<span data-val="100">￥100</span>
		<span data-val="300">￥300</span>
		<span data-val="500">￥500</span>
		<span data-val="1000">￥1000</span>
		<span data-val="3000">￥3000</span>
		<span data-val="5000">￥5000</span>
		<span data-val="10000">￥10000</span>
	</div>
</div>
<div class="zfqd">
	<img src="__TEMPLATE__/mobile/index/img/quan.png"/>
	<p>请选择支付渠道</p>
</div>
<ul id="zftd">
	{volist name="list" id="v"}
	<li>
		<a href="javascript:;" data-type="{$v['pay_name']}" data-key="{$v['type_value']}" data-controller="{$v['controller']}" onclick="doPay(this,{$v['id']},{$v['method']})">
			<div>
				{if(2==$v['method'])}
				<p>{$v['pay_name']}</p>
				<p>线上支付</p>
				{elseif(1==$v['method'])}
				<p>{$v['type_name']}</p>
				<p>{$v['pay_name']}</p>
				{else/}
				<p>{$v['type_name']}</p>
				<p >
					线下支付（{$v['pay_name']}扫码）
				</p>
				{/if}
			</div>
			<span class="Hui-iconfont" >&#xe6d7;</span>
		</a>
	</li>
	{/volist}
</ul>

<div style="width:100%;height:50px;"></div>
<div style=" width:100%; border:1px solid #ccc;position:fixed;top:44px;background:#fff;overflow: auto;" id="ChongZhi_WeiXin" class="charge_list">
	<div style="margin:0 auto;height:auto;">
		<div style="margin:10px auto 0;overflow: hidden;text-align: center;">
			<img style="width:18px;margin-right:3px;" src="__TEMPLATE__/mobile/index/img/wx.png " />
			<span style="font-size:13px;color:#5d5555;">微信账号：<i id="wx_name">xxxx</i></span>
		</div>
		<img id="wx_img" src="" style="display:block;width:150px;height:150px;margin:10px auto;">
		<strong style="color:#FF0000;display:block;font-size:12px;margin:10px auto 0;text-align: center;">请在转账成功后再输入转账金额进行提交&nbsp;&nbsp;</strong>
	</div>
	<form action="" method="post" enctype="application/x-www-form-urlencoded" style="margin-top:20px;width:98%;height:170px;">
		<div style="width:300px;margin:30px auto;height:30px;">
			<p style="width: 100%;height: 100%;"><span style="font-size:12px;display:block;float:left;height:30px;line-height:30px;color:#4e4a4a;">存入时间：</span></p>
			<input readonly="readonly" name="wxTime" id="appDateTime" type="text" style="display:block;margin-left:60px;text-indent:8px;width:235px;float:left;height:30px;line-height:30px;color:#292929;border:1px solid #ccc;font-size: 12px;" value="">
		</div>
		<div style="width:300px;margin:30px auto;height:30px;">
			<p style="width: 100%;height: 100%;">
				<span style="font-size:12px;display:block;float:left;height:30px;line-height:30px;color:#4e4a4a;">验证信息：</span>
			</p>
			<input type="text" required="required" style="text-indent:8px;margin-left:60px;display:block;width:235px;float:left;height:30px;line-height:30px;color:#292929;border:1px solid #ccc;font-size: 12px;" id="wxName" placeholder="请输入您的微信账号">
		</div>
		<input type="hidden" id="wx_account">
		<input type="button" onclick="recharge(1)" value="已支付，确定提交" style="display:block;width:300px;height:40px;line-height:40px;color:#fff;border-radius: 10px;background:red;margin:50px auto 0;">
	</form>
	<div class="wxts" style="width:98%; line-height:35px;margin-left:1%; margin-top:10px; padding:10px; ">
		<p style="font-size: 14px;color: black;">温馨提示：</p>
		<p>1.请手动截屏保存二维码图片或常按保存二维码</p>
		<p>2.请在微信中打开“扫一扫”</p>
		<p>3.在扫一扫中点击右上角，选择“从相册选取二维码”选取截屏的图片</p>
		<p>5.支付完成以后请填写验证信息(您的微信账号)</p>
		<p>6.如充值未及时到账请联系在线客服</p>
	</div>

</div>

<div style=" width:100%; border:1px solid #ccc;position:fixed;top:44px;background:#fff;overflow: auto;" id="ChongZhi_ZhiFuBao" class="charge_list">

	<div style="margin:10px auto 0;height:auto;">
		<div style="margin:0 auto;overflow: hidden;text-align: center;">
			<img style="width:18px;margin-right:3px;" src="__TEMPLATE__/mobile/index/img/zfb.png " />
			<span style="font-size:13px;color:#5d5555;">支付宝账号：<i id="ali_name">xxxx</i></span>
		</div>
		<img id="ali_img" src="" style="display:block;width:150px;height:150px;margin:10px auto;">
		<strong style="color:#FF0000;display:block;font-size:12px;margin:10px auto 0;text-align: center;">请在转账成功后再输入转账金额进行提交&nbsp;&nbsp;</strong>
	</div>
	<form action="" method="post" enctype="application/x-www-form-urlencoded" style="margin-top:20px;width:98%;height:170px;">
		<div style="width:300px;margin:30px auto;height:30px;">
			<p style="width: 100%;height: 100%;"><span style="font-size:12px;display:block;float:left;height:30px;line-height:30px;color:#4e4a4a;">存入时间：</span></p><input readonly="readonly" name="aliTime" id="appDateTime_z" type="text" style="display:block;margin-left:60px;text-indent:8px;width:235px;float:left;height:30px;line-height:30px;color:#292929;border:1px solid #ccc;font-size: 12px;" value="">
		</div>
		<div style="width:300px;margin:30px auto;height:30px;">
			<p style="width: 100%;height: 100%;"><span style="font-size:12px;display:block;float:left;height:30px;line-height:30px;color:#4e4a4a;">验证信息：</span></p><input type="text" required="required" style="text-indent:8px;margin-left:60px;display:block;width:235px;float:left;height:30px;line-height:30px;color:#292929;border:1px solid #ccc;font-size: 12px;" id="aliName" placeholder="请输入您的支付宝账号">
		</div>
		<input type="hidden" id="ali_account">
		<input type="button" onclick="recharge(2)" value="已支付，确定提交" style="display:block;width:300px;height:40px;line-height:40px;color:#fff;border-radius: 10px;background:red;margin:50px auto 0;">
	</form>
	<div class="wxts" style="width:98%; line-height:35px;margin-left:1%; margin-top:35px; padding:10px; ">
		<p style="font-size: 14px;color: black;">温馨提示：</p>
		<p>1.请手动截屏保存二维码图片或常按保存二维码</p>
		<p>2.请在支付宝中打开“扫一扫”</p>
		<p>3.在扫一扫中点击右上角，选择“从相册选取二维码”选取截屏图片</p>
		<p>4.支付完成以后请填写验证信息(您的支付宝账号)</p>
		<p>5.如充值未及时到账请联系在线客服</p>
	</div>

</div>

<div style=" width:100%; border:1px solid #ccc;position:fixed;top:44px;background:#fff;overflow: auto;" id="ChongZhi_QQ" class="charge_list">
	<div style="margin:10px auto 0;height:auto;">
		<div style="margin:0 auto;overflow: hidden;text-align: center;">
			<img style="width:18px;margin-right:3px;" src="__TEMPLATE__/mobile/index/img/QQ-01.png " />
			<span style="font-size:13px;color:#5d5555;">QQ账号：<i id="qq_name">xxxx</i></span>
		</div>
		<img id="qq_img" src="" style="display:block;width:150px;height:150px;margin:10px auto;">
		<strong style="color:#FF0000;display:block;font-size:12px;margin:10px auto 0;text-align: center;">请在转账成功后再输入转账金额进行提交&nbsp;&nbsp;</strong>
	</div>
	<form action="" method="post" enctype="application/x-www-form-urlencoded" style="margin-top:20px;width:98%;height:170px;">
		<div style="width:300px;margin:30px auto;height:30px;">
			<p style="width: 100%;height: 100%;"><span style="font-size:12px;display:block;float:left;height:30px;line-height:30px;color:#4e4a4a;">存入时间：</span></p><input readonly="readonly" name="qqTime" id="appDateTime_q" type="text" style="display:block;margin-left:60px;text-indent:8px;width:235px;float:left;height:30px;line-height:30px;color:#292929;border:1px solid #ccc;font-size: 12px;" value="">
		</div>
		<div style="width:300px;margin:30px auto;height:30px;">
			<p style="width: 100%;height: 100%;"><span style="font-size:12px;display:block;float:left;height:30px;line-height:30px;color:#4e4a4a;">验证信息：</span></p><input type="text" required="required" style="text-indent:8px;margin-left:60px;display:block;width:235px;float:left;height:30px;line-height:30px;color:#292929;border:1px solid #ccc;font-size: 12px;" id="qqName" placeholder="请输入您的QQ账号">
		</div>
		<input type="hidden" id="qq_account">
		<input type="button" onclick="recharge(3)" value="已支付，确定提交" style="display:block;width:300px;height:40px;line-height:40px;color:#fff;border-radius: 10px;background:red;margin:50px auto 0;">
	</form>
	<div class="wxts" style="width:98%; line-height:35px;margin-left:1%; margin-top:35px; padding:10px; ">
		<p style="font-size: 14px;color: black;">温馨提示：</p>
		<p>1.请手动截屏保存二维码图片或常按保存二维码</p>
		<p>2.请在支付宝中打开“扫一扫”</p>
		<p>3.在扫一扫中点击右上角，选择“从相册选取二维码”选取截屏图片</p>
		<p>4.支付完成以后请填写验证信息(您的支付宝账号)</p>
		<p>5.如充值未及时到账请联系在线客服</p>
	</div>

</div>

<div style=" width:100%; border:1px solid #ccc;position:fixed;top:44px;background:#fff;overflow: auto;" id="ChongZhi_WangYin" class="charge_list">

	<div style="width:98%; height:35px; line-height:35px; text-align:center; margin-left:1%;position: relative;">
		<img style="width: 18px;margin-bottom: 10px;position: absolute;top: 12px;left: 114px;" src="__TEMPLATE__/mobile/index/img/yl.png " />
		<span style="font-size:13px;color:#5d5555;margin-bottom:10px;margin-left:5px;"><i style="font-style: normal;" id="bank_name">开户人：xxx</i></span>
	</div>
	<div style="width:98%; height:35px;line-height:35px; text-align:center; margin-left:1%;margin-top:5px;font-size:13px;color:#5d5555;">
		所属银行：<i style="font-style: normal;" id="bank_mc">xxxx</i>
	</div>
	<div style="width:98%;line-height:35px; text-align:center; margin-left:1%; margin-top:5px; padding:10px;font-size:13px;color:#5d5555;">
		银行账号：<i style="font-style: normal;" id="bank_num">8888888888888</i>
		<strong style="color:#FF0000;display:block;font-size:12px;margin-top:10px;">请在转账成功后再输入转账金额进行提交&nbsp;&nbsp;</strong>
	</div>
	<form action="" method="post" enctype="application/x-www-form-urlencoded" style="margin-top:20px;width:98%;height:170px;">
		<div style="width:300px;margin:10px auto;height:30px;">
			<p style="width: 100%;height: 100%;"><span style="font-size:12px;display:block;float:left;height:30px;line-height:30px;color:#4e4a4a;">存入时间：</span></p><input readonly="readonly" name="bankTime" id="appDateTime_y" type="text" style="display:block;margin-left:60px;text-indent:8px;width:235px;float:left;height:30px;line-height:30px;color:#292929;border:1px solid #ccc;font-size: 12px;" value="">
		</div>
		<div style="width:300px;margin:50px auto;height:30px;">
			<p style="width: 100%;height: 100%;"><span style="font-size:12px;display:block;float:left;height:30px;line-height:30px;color:#4e4a4a;">打款姓名：</span></p><input required="required" type="text" style="text-indent:8px;margin-left:60px;display:block;width:235px;float:left;height:30px;line-height:30px;color:#292929;border:1px solid #ccc;font-size: 12px;" id="bankName" placeholder="请输入您的姓名">
		</div>
		<input type="hidden" id="bank_account">
		<input type="button" onclick="recharge(3)" value="确定提交" style="display:block;width:300px;height:40px;line-height:40px;color:#fff;border-radius: 10px;background:red;margin:50px auto 0;">
	</form>
	<div class="wxts" style="width:98%; line-height:35px;margin-left:1%; margin-top:30px; padding:10px;">
		<p style="font-size: 14px;color: black;">温馨提示：</p>
		<p>1、提交订单前，请先进行转账操作，以便加速审核；</p>
		<p>2、以上银行账号仅限本次存款使用，存款请依照当前页所显示的银行账号入款。如入款至已过期账号，无法查收，本平台概不负责！</p>
	</div>

</div>


<div style="width:100%; display:none; border:1px solid #ccc;position:fixed;top:44px;background:#fff;overflow: auto;" id="ChongZhi_Online" class="charge_list">

	<div style="text-align:center;">
		<span style="color:#FF0000;display:block;margin:0 auto;width:100%;text-align: center;" > 充值账号：&nbsp;&nbsp;<i id="online_pay_name" style="font-style: normal;">{$name}</i></span>
		<span style="color:#FF0000;display:block;margin:0 auto;width:100%;text-align: center;" > 充值金额：&nbsp;&nbsp;<i id="online_pay_money"  style="font-style: normal;"></i></span>
		<img id="online_pay_img" src="" style="margin-top:10px;"  width="190" ><br />
		<span style="color:#FF0000;display:block;margin:0 auto;width:100%;text-align: center;" id="sm" ></span>
		<div style="width:100%;color:#FF0000;text-align: center;" id="online_djs">05分00秒失效</div>
		<div style="width:50%;padding:10px 15px;border:1px solid #ccc;text-align: center;height:40px;margin:10px auto 0;" id="online_pay_success">我已支付</div>
		<div class="wxts" style="width:98%; line-height:35px;margin-left:1%; margin-top:35px; padding:10px; ">
			<p style="font-size: 14px;color: black;">温馨提示：</p>
			<p>1.请手动截屏保存二维码图片或常按保存二维码</p>
			<p>2.请在<span class="online_lab">支付宝</span>中打开“扫一扫”</p>
			<p>3.在扫一扫中点击右上角，选择“从相册选取二维码”选取截屏图片</p>
			<p>4.支付完成以后请填写验证信息(您的<span class="online_lab">支付宝</span>账号)</p>
			<p>5.如充值未及时到账请联系在线客服</p>
		</div>
	</div>
</div>

<script type="text/javascript">
	var currYear = (new Date()).getFullYear();
	var opt = {};
	opt.date = {
		preset: 'date'
	};
	opt.datetime = {
		preset: 'datetime'
	};
	opt.time = {
		preset: 'time'
	};
	opt.default = {
		theme: 'android-ics light', //皮肤样式
		display: 'modal', //显示方式
		mode: 'scroller', //日期选择模式
		dateFormat: 'yyyy-mm-dd',
		lang: 'zh',
		showNow: true,
		nowText: "今天",
		startYear: currYear - 10, //开始年份
		endYear: currYear + 10 //结束年份
	};

	var optDateTime = $.extend(opt['datetime'], opt['default']);

	$("#appDateTime").mobiscroll(optDateTime).datetime(optDateTime);
	$("#appDateTime_y").mobiscroll(optDateTime).datetime(optDateTime);
	$("#appDateTime_z").mobiscroll(optDateTime).datetime(optDateTime);
	$("#appDateTime_q").mobiscroll(optDateTime).datetime(optDateTime);
</script>


<script>
	$('.charge_list').css('height',(innerHeight-90)+'px')
	$('#money_value').children('span').click(function(){
		var money_value=$(this).data('val');
		$('#money_value').children('span').removeClass('add_bg');
		$(this).addClass('add_bg');
		$('#recharge_money').val(money_value);
	});
	var online_timer= null;
	var online_minute = 0;
	var online_second = 0;
	function doPay(obj,id,method){
		method = parseInt(method);
		var money = parseFloat($('#recharge_money').val());
		var username = '{$name}';
		var data_type=$(obj).data('type')
		var index = layer.load(1, {
			shade: [0.1,'#fff'] //0.1透明度的白色背景
		});
		if( 1==method ){
			var controller = $(obj).data('controller');
			var key = $(obj).data('key');
			var url = '/index/pay'+controller+'/initPay.html';
			var data = '';
			switch(controller){
				case 'gt':
				case 'kf':
				case 'xgx':
					data = {"username": username,"amount": money,"pay_type": key};
					break;
				case 'sf':
				case 'by':
				case 'syf':
					data = {"username": username,"amount": money,"bank_code": key};
					break;
			}

			$.ajax({
				type: "post",
				url: url,
				data: data,
				success: function(data) {
					if( 'string' == typeof (data) ){
						data = JSON.parse(data);
					}
					if(data.status == '200') {
						location.href = data.data;
					} else {
						var info = '';
						if( data.info ){
							info = data.info;
						}else{
							info = data.msg;
						}
						layer.msg(info, {icon: 5});
						layer.close(index);
					}
				}
			});
		}else if( 3==method ){
			$.ajax({
				type: "post",
				url: "{:url('mobile/member/getOfflineMessage')}",
				data: {id:id},
				success: function(data) {
					data = JSON.parse(data);
					if( 1==parseInt(data.status) ){
						layer.close(index);
						var off_info = data.data;
						var off_wx = off_info.xx_weixin;
						var off_ali = off_info.xx_zhifubao;
						var off_bank = off_info.xx_wangyin;
						var off_qq = off_info.xx_qq;

						layer.close(index);
						if( 1==parseInt(off_wx) ){
							$('#reveal-left-app').data('type',1);
							$('#wx_name').html(off_info.xx_test);
							$('#wx_account').val(id);
							$('#wx_img').attr('src','__ATTACHMENT__/'+off_info.xx_erweima);
							$('.ui-toolbar-title').html("微信扫码");
							$('#ChongZhi_WeiXin').show()
						}else if( 1==parseInt(off_ali) ){
							$('#reveal-left-app').data('type',1);
							$('#ali_name').html(off_info.xx_test);
							$('#ali_account').val(id);
							$('#ali_img').attr('src','__ATTACHMENT__/'+off_info.xx_erweima);
							$('.ui-toolbar-title').html("支付宝扫码");
							$('#ChongZhi_ZhiFuBao').show()
						}else if( 1==parseInt(off_qq) ){
							$('#reveal-left-app').data('type',1);
							$('#qq_name').html(off_info.xx_test);
							$('#qq_account').val(id);
							$('#qq_img').attr('src','__ATTACHMENT__/'+off_info.xx_erweima);
							$('.ui-toolbar-title').html("QQ扫码");
							$('#ChongZhi_QQ').show()
						}else if( 1==parseInt(off_bank) ){
							$('#reveal-left-app').data('type',1);
							$('#bank_account').val(id);
							$('#bank_mc').html(off_info.xx_bankname);
							$('#bank_num').html(off_info.xx_bankno);
							$('#bank_name').html(off_info.xx_bankren);
							$('.ui-toolbar-title').html("银行转账");
							$('#ChongZhi_WangYin').show()
						}else{
							layer.msg("未找到对应支付方案", {icon: 5});
						}
					}else{
						layer.close(index);
						layer.msg(data.msg, {icon: 5});
					}
				}
			});
		}else if( 2==method ){
			$('#online_pay_money').html('￥'+money);
			var type = '';
			if(data_type=='微信扫码'){
				type = "wechat";
				$('#sm').html('打开微信，扫码支付')
				$('.online_lab').html('微信');
				$('.ui-toolbar-title').html("微信扫码");
			}else{
				type = "alipay";
				$('#sm').html('打开支付宝，扫码支付')
				$('.online_lab').html('支付宝');
				$('.ui-toolbar-title').html("支付宝扫码");
			}
			$.ajax({
				type: "post",
				url: "{:url('index/pay/buildCode')}",
				data: {
					'type':type,'money':money,'username':username
				},
				success: function(data) {
					layer.close(index);
					if(data.status=='200'){
						$('#reveal-left-app').data('type',1);
						$('#online_pay_img').attr('src','__CODE__/'+data.data.code)
						$('#ChongZhi_Online').show();
						online_minute = "4";
						online_second = "60";
						online_timer=setInterval(DownTick_zfb,1000);
					}else{
						layer.msg(data.info, {icon: 5});
					}
				}
			});
		}
	}

	function DownTick_zfb(){
		if(online_second=='01'&&online_minute=='00') {
			clearInterval(online_timer);
			window.location.reload();
			return;
		}
		online_second--;
		if(online_minute=='4'){
			online_minute = "0" + online_minute;
		}
		if(online_minute=='0'){
			online_minute = "0" + online_minute;
		}
		if(online_second == '00') {
			online_second = 59;
			online_minute--;
			if(online_minute < 10) online_minute = "0" + online_minute;
		}
		if(online_second < 10) online_second = "0" + online_second;
		$('#online_djs').html(online_minute+'分'+online_second+'秒失效')
	}
	$('#online_pay_success').click(function(){
		window.location.reload()
	});
	function recharge( type ){
		type = parseInt(type);
		var data = '';
		if( 1==type ){
			data = {'type':type,'money':$('#recharge_money').val(),'remark':$('#wxName').val(),'time':$("input[name='wxTime']").val(),'account':$('#wx_account').val()};
		}else if( 2==type ){
			data = {'type':type,'money':$('#recharge_money').val(),'remark':$('#aliName').val(),'time':$("input[name='aliTime']").val(),'account':$('#ali_account').val()};
		}else if( 3==type ){
			data = {'type':type,'money':$('#recharge_money').val(),'remark':$('#bankName').val(),'time':$("input[name='bankTime']").val(),'account':$('#bank_account').val()};
		}else{
			layer.msg('方案无效！', {icon: 5});
			return;
		}
		$.ajax({
			type: "post",
			url: "{:url('mobile/member/offLineRecharge')}",
			data: data,
			success: function(ret) {
				ret = JSON.parse(ret);
				if( 1==parseInt(ret.status) ){
					layer.msg("提交成功", {icon: 1});
					location.reload();
				}else{
					layer.msg(ret.msg, {icon: 5});
				}
			},error:function(){
				layer.msg("通讯失败！", {icon: 5});
			}
		});
	}
</script>
{/block}